//
//  HMCommon.swift
//  Weibo
//
//  Created by teacher on 2017/6/7.
//  Copyright © 2017年 teacher. All rights reserved.
//

import UIKit

//  切换根视图控制器的通知
let SwitchRootVCNotificationName = "SwitchRootVCNotificationName"
//  点击表情按钮的通知
let ClickEmotionButtonNotificationName = "ClickEmotionButtonNotificationName"
//  点击删除删除的通知
let ClickDeleteButtonNotificationName = "ClickDeleteButtonNotificationName"
//  boundle对象
let EmoticonButton = HMEmoticonTools.sharedTools.emoticonBundle



//  首页cell的重用标记
let HomeCellIdentifier = "HomeCellIdentifier"
//  首页配图cell的重用标记
let HomePictureViewCellIdentifer = "HomePictureViewCellIdentifer"
//  撰写配图cell的重用标记
let ComposePictureViewCellIdentifier = "ComposePictureViewCellIdentifier"
//  表情视图cell的重用标记
let EmoticonViewCellIdentifier = "EmoticonViewCellIdentifier"

//  首页cell子控件之间间距
let HomeCellMargin: CGFloat = 10
//  当前屏幕的宽度
let ScreenWidth = UIScreen.main.bounds.size.width
//  当前屏幕的高度
let ScreenHeight = UIScreen.main.bounds.size.height

//  创建随机颜色
func RandomColor() -> UIColor {
    //  创建随机色的值
    let red = CGFloat(arc4random_uniform(256)) / 255.0
    let green = CGFloat(arc4random_uniform(256)) / 255.0
    let blue = CGFloat(arc4random_uniform(256)) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}
